#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
vector<string> readFileToVector(const string& filePath);
int main(){
	string filePath = "example.txt";
	vector<string> lines = readFileToVector(filePath);
	for(const auto& line : lines){
		cout << line << endl;
	}
	return 0;
}
vector<string> readFileToVector(const string& filePath){
	vector<string> lines;
	ifstream file(filePath);
	if(!file.is_open()){
		cout << "Unable to open file: " << filePath << endl;
		return lines;
	}
	string line;
	while(getline(file, line)){lines.push_back(line);
	}
	file.close();
	return lines;
}

